package top.toptimus.dto.customerInfo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@AllArgsConstructor
public class CustomerOrderCommitDTO {
    private String customerId;//客户id
    private String customerName;//客户名称
    private String mobile;  //手机
    private String addressId;//地址id
    private String addressProvince;//省
    private String addressCity;//市
    private String addressDistrict;//区
    private String addressDetail;//详细地址
    private String zipCode;//邮编

    public CustomerOrderCommitDTO(
            String mobile,
            String customerName,
            String addressProvince,
            String addressCity,
            String addressDistrict,
            String addressDetail,
            String zipCode
    ) {
        this.mobile = mobile;
        this.addressId = "0";
        this.customerName = customerName;
        this.addressProvince = addressProvince;
        this.addressCity = addressCity;
        this.addressDistrict = addressDistrict;
        this.addressDetail = addressDetail;
        this.zipCode = zipCode;
    }
}
